const expressJwt = require('express-jwt');
const { secretKey } = require('./constant');

//unless 为排除那些接口
const jwtAuth = expressJwt({secret: secretKey}).unless({path:['/admin/work/ceshi','/admin/user/getpassword','/admin/user/postmail','/admin/user/login','/admin/user/register']})

module.exports = jwtAuth;